package com.fushenlan.excel;

import cn.afterturn.easypoi.handler.inter.IExcelDictHandler;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author XUJIN
 * @DATE 2022/4/26
 * @PACKAGE_NAME com.fushenlan.excel
 * @VERSION 1.0
 * 设置单元格下拉
 */
public class ExcelSubHandler implements IExcelDictHandler {



    @Override
    public List<Map> getList(String dict) {

        // 这里可以动态加入数据
        List<Map> list = new ArrayList<>();
        Map<String, String> dictMap = new HashMap<>();

        dictMap.put("dictKey", "1");
        dictMap.put("dictValue", "荣成居委");
        list.add(dictMap);

        return IExcelDictHandler.super.getList(dict);
    }

    @Override
    public String toName(String s, Object o, String s1, Object o1) {
        return null;
    }

    @Override
    public String toValue(String s, Object o, String s1, Object o1) {
        return null;
    }
}
